/**
 *
 */
package com.javademos.train.dynamicdatasource.service;

import java.util.List;

import com.javademos.train.dynamicdatasource.entity.DemoEntity;

/**
 * @author 踩坑填坑
 * @Description: [ Service接口 ]
 * @Email: 120987555@qq.com
 * @Date: 2017年9月1日 上午11:53:17
 * @Version: V1.0
 */
public interface DemoService {

    /**
     * ======= JPA数据库操作 ========
     */

    DemoEntity findOneByJpa(Long id);

    DemoEntity findOneByJpa2(Long id);

    DemoEntity findOneByJpa3(Long id);

    List<DemoEntity> findAllByJpa();

    List<DemoEntity> findAllByJpaByDs2();

    List<DemoEntity> findAllByJpaByDs3();

    /**
     * ======= JDBC数据库操作 ========
     */
    DemoEntity findOneByJdbc(Long id);

    DemoEntity findOneByJdbc2(Long id);

    DemoEntity findOneByJdbc3(Long id);

    List<DemoEntity> findAllJdbc();

    List<DemoEntity> findAllJdbcByDs2();

    List<DemoEntity> findAllJdbcByDs3();

}
